/* Lac Viet ERP                                                
 * Copyright (c) 2013 Lac Viet                                 
 * http://www.lacviet.com.vn                                   
 *=============================================================
 * File name            : SR_tblAttachItem.cs         
 * Created by           : Auto - 04/23/2014 15:03:45                     
 * Last modify          : Auto - 04/23/2014 15:03:45                     
 * Version              : 1.0                                  
 * ============================================================
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace LineOfBusiness.Poco
{
	[Serializable]
	public partial class SR_tblAttachItem : BaseEntity
	{
		public SR_tblAttachItem()
		{
            this.Quantity = 0;
		}

	    #region Properties

		private string _SONo;

        [Key]
		[RegularExpression(@"[a-zA-Z0-9_-]*")]
		[Required]
        [MaxLength(20)]
        public string SONo 
		{ 
			get
			{
                return _SONo;
			}
			set 
			{ 
                _SONo = value;
			} 
		}

		private string _ItemID;

        [Key]
		[RegularExpression(@"[a-zA-Z0-9_-]*")]
		[Required]
        [MaxLength(20)]
        public string ItemID 
		{ 
			get
			{
                return _ItemID;
			}
			set 
			{ 
                _ItemID = value;
			} 
		}

		private decimal _Quantity;
		[Required]
        public decimal Quantity 
		{ 
			get
			{
                return _Quantity;
			}
			set 
			{ 
                _Quantity = value;
			} 
		}

		private string _UMID;
		[Required]
        [MaxLength(20)]
        public string UMID 
		{ 
			get
			{
                return _UMID;
			}
			set 
			{ 
                _UMID = value;
			} 
		}

		private string _Note;
        [MaxLength(200)]
        public string Note 
		{ 
			get
			{
                return _Note;
			}
			set 
			{ 
                _Note = value;
			} 
		}

		private string _ItemAttach;
        [MaxLength(20)]
        public string ItemAttach 
		{ 
			get
			{
                return _ItemAttach;
			}
			set 
			{ 
                _ItemAttach = value;
			} 
		}
		/// <summary>
        /// Column: IV_tblItemLists.ItemID
        /// </summary>
		public IV_tblItemLists IV_tblItemLists { get;set; }

		/// <summary>
        /// Column: SR_tblSalesOrders.SONo
        /// </summary>
		public SR_tblSalesOrders SR_tblSalesOrders { get;set; }


        #endregion
	}
}
